package month3.day30;

public class Jiaoche extends Car {
    private String xinghao;

    public Jiaoche(String chepai, String pingpai, double money, String xinghao) {
        super(chepai, pingpai, money);
        this.xinghao = xinghao;
    }
    public void show(){
        System.out.println("轿车  " + getPingpai() + "-" + getXinghao() + "，车牌：" +getChepai() + "，日租金：" + getMoney() + "，" + getZuangtai() );

    }

    public String getXinghao() {
        return xinghao;
    }

    public void setXinghao(String xinghao) {
        this.xinghao = xinghao;
    }

    @Override
    public double zujin(int day) {
        return getMoney()*day;
    }
}
